home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000298_amos-request@svcs1.digex.net_Thu Sep 21 14:16:22 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  2KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id OAA12861;  for <mcox@access.digex.net> ; Thu, 21 Sep 1995 14:16:19 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id MAA29280 for amos-out; Thu, 21 Sep 1995 12:47:31 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id MAA29276 for <amos-list@svcs1.digex.net>; Thu, 21 Sep 1995 12:47:29 -0400
  4. Received: from disperse.demon.co.uk (disperse.demon.co.uk [158.152.1.77]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id MAA01590;  for <amos-list@access.digex.net> ; Thu, 21 Sep 1995 12:47:18 -0400
  5. Received: from post.demon.co.uk by disperse.demon.co.uk id ab25395;
  6.           21 Sep 95 8:55 +0100
  7. Received: from westmead.demon.co.uk by post.demon.co.uk id aa14713;
  8.           21 Sep 95 8:52 +0100
  9. From: Mark Carter <Mark@westmead.demon.co.uk>
  10. Organization:  None Whatsoever
  11. To: amos-list@access.digex.net
  12. Date:          Wed, 20 Sep 1995 20:00:48 +0000
  13. Subject:       Re: Bits and Pieces
  14. Priority: normal
  15. X-mailer: Pegasus Mail/Windows (v1.22)
  16. Message-ID:  <9509210852.aa14713@post.demon.co.uk>
  17. Status: RO
  18. X-Status: 
  19.  
  20. > Greetings Mark, you wrote some text on the subject Re: Bits and Pieces, and
  21. > now I'm going to answer it.
  22. > MC> > MC> Compare this to loading all data from the bank into arrays. Then all 
  23. > MC> > MC> I would have to do to access a stat is
  24. > MC> > MC> 
  25. > MC> > MC>      Result=Statistic(Player,Team,Statnum)
  26. > MC> > MC> 
  27. > MC> > MC> Much nicer, dont you agree.....?
  28. > MC> > 
  29. > MC> > I guess so... but how about this:
  30. > MC> > 
  31. > MC> > Def fn _RESULT(Player,Team,Statnum)=Deek(Start(Bank)+400*Team+20*Player+2*Statnum)
  32. > MC> > Result=Fn_RESULT(Player,Team,Statnum)
  33. > MC> > 
  34. > MC> > Which would be neat-ish...
  35. > MC> 
  36. > MC> Nice idea - I like it!..... although I hate using Def fn - you cant 
  37. > MC> hide them away like normal procedures.
  38. > Don't forget you have to include them in every procedure it is used in -
  39. > something which I didn't realise for ages... yet another flaw in amos
  40. > functions... ;-)
  41.  
  42. Shame.  With 150 procedures and 30 arrays, that means up to 4500 Def 
  43. fns - Ouch, Ouch, Ouch!  :-(((
  44.  
  45. Cheers,
  46.  
  47. Mark
  48.  
  49. Mark Carter
  50. e-mail: mark@westmead.demon.co.uk,   exet0007@sable.ox.ac.uk